using BuildingBlocks.Core.Interfaces;


namespace Catalog.Domain.Events;
public class PriceChangedDomainEvent : IDomainEvent
{
    public Guid CatalogItemId { get; }
    public decimal NewPrice { get; }
    public DateTime OccurredOn { get; } = DateTime.UtcNow;

    public PriceChangedDomainEvent(Guid catalogItemId, decimal newPrice)
    {
        CatalogItemId = catalogItemId;
        NewPrice = newPrice;
    }
}